# -*- coding: utf-8 -*-

import os

from pywinauto.application import Application
from unrar import rarfile

file = rarfile.RarFile(u'E:\\数据\\DEUGlobe_Trunk_x64_6802.rar')  #这里写入的是需要解压的文件
file.extractall(u'E:\\数据')
filedirprant = u"E:\\数据\\DEUGlobe_Trunk_x64_6802"
# data = os.listdir(filedirprant)
# for filedir in data:
#     if filedir == "Setup.exe":
open(u'E:\\数据\\DEUGlobe_Trunk_x64_6802\\Setup.exe')
